﻿using OAS.Application.AuthApp.Services;
using OAS.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OAS.Application.AuthApp
{
    public class AuthController : IDynamicApiController
    {
        private readonly ISqlSugarClient db;
        private readonly IAuthService _authService;
        public AuthController(IAuthService authService, ISqlSugarClient db)
        {
            this.db = db;
            _authService = authService;
        }
        public async Task<List<Auth>> GetAuthList()
        {
            return await _authService.GetAuthList();
        }
        public async Task UpdateAuth(List<Auth> auths)
        {
            await _authService.UpdateAuth(auths);
        }
    }
}
